package com.aisile.admin;

import com.aisile.model.admin.dtos.ChannelDto;
import com.aisile.model.admin.pojos.AdChannel;
import com.aisile.model.common.dtos.ResponseResult;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AdChannelApi {
    //全查用的是channeldto因为是带搜索channeldto有name
       public ResponseResult findAll(@RequestBody ChannelDto channelDto);
       //添加频道
    public ResponseResult saveAdChennal(@RequestBody AdChannel adChannel);
    //修改频道
    public ResponseResult updateAdCennal(@RequestBody AdChannel adChannel);
    //删除频道
    public ResponseResult deleteAdCennal(@PathVariable int id);
    //批量删除频道
    public ResponseResult delManyAdCennal(@RequestBody List<Integer> list);
    //查找id
    public ResponseResult getbyId(@PathVariable int id);
}
